package com.tao.springcloud.controller;

import cn.hutool.core.util.IdUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName NacosProviderController
 * @Author HETAO
 * @Date 2020/5/12 11:58
 */
@RestController
@RequestMapping("nacos")
public class NacosProviderController {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping("get")
    public String getNacors() {
        return "端口号："+serverPort+"  流水号："+ IdUtil.simpleUUID();
    }
}
